package com.xiaolin.sports.dao;

import java.util.List;

import com.xiaolin.sports.model.ParentInfo;
import com.xiaolin.sports.page.Page;
import com.xiaolin.sports.view.CourseBuyerView;
import com.xiaolin.sports.view.ParentInfoView;

public interface ParentInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ParentInfo record);

    int insertSelective(ParentInfo record);

    ParentInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ParentInfo record);

    int updateByPrimaryKey(ParentInfo record);
    
    ParentInfo selectByOpenid(String openid);
    
    int selectCountByOpenid(String openid);
        
    List<ParentInfo> selectListByPage(Page<ParentInfo> page);
    
    List<CourseBuyerView> selectBuyRecordByPage(Page<CourseBuyerView> page);
    
    List<ParentInfoView> selectBuyTotalByPage(Page<ParentInfoView> page);
}